<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Icms.Core.Model.Message>" %>
<%=Html.HiddenFor(o => o.Id) %>
<%=Model.DateSent %>
<%=Model.Subject %>
<%=Model.Text %>
<script type="text/javascript">
    $(function () {
        $('#preadinbox').bind('dialogclose', function () {          
                edit({ Id: $('#Id').val() });
            });        
    });
</script>